package com.study.business.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Mayjean
 * @Date2020/9/5 13:35
 */
@FeignClient(value = "storage", url = "http://127.0.0.1:18082")
public interface StorageService {

    @RequestMapping(path = "/storage/{commodityCode}/{count}")
    String storage(@RequestParam("commodityCode") String commodityCode,
                   @RequestParam("count") int count);

}